8835f01f266214632771e56753799788827c3def,Base/ParticleEntity.java,ParticleEntity,onUpdate,#,50
Before Change
if (motionX == 0 && motionY == 0 && motionZ == 0 && ticksExisted > 20)
this.setDead();
if (posY > 256 || posY < 0)
this.setDead();
if (this.despawnOverTime() && ticksExisted > 120 && ReikaRandomHelper.doWithChance(ticksExisted-120))
this.setDead();
After Change
return;
}
if (posY > 256 || posY < 0) {
this.setDead();
this.onDeath();
return;
}
if (this.despawnOverTime() && ticksExisted > 120 && ReikaRandomHelper.doWithChance(ticksExisted-120)) {
this.setDead();
this.onDeath();
return;
}
if (this.despawnOverDistance() && spawnLocation != null && spawnLocation.getDistanceTo(this) >= this.getDespawnDistance()) {
this.setDead();
this.onDeath();
return;
}
//ReikaJavaLibrary.pConsole(String.format("%d, %d, %d :: %d, %d, %d", oldBlockX, oldBlockY, oldBlockZ, this.getBlockX(), this.getBlockY(), this.getBlockZ()));
//ReikaJavaLibrary.pConsole(this.getBlockX()+", "+this.getBlockY()+", "+this.getBlockZ());
if (this.isNewBlock()) {
int x = this.getBlockX();
int y = this.getBlockY();
int z = this.getBlockZ();
oldBlockX = x;
oldBlockY = y;
oldBlockZ = z;
if (ticksExisted < 5 && !this.canInteractWithSpawnLocation() && !outOfSpawn) {
}
else {